import request from '@/utils/request'

// 查询所有公交线路
export function getStationLine(id) {
  return request({
    url: '/lgsvapi/bus/treeselect?deptId='+id,
    method: 'get'
  })
}

// 查询线路站台名
export function getStation(query) {
  return request({
    url: '/lgsvapi/bus/lineStationList',
    method: 'get',
	params: query
  })
}

// 查询站台信息
export function getStationInfo(query) {
  return request({
    url: '/lgsvapi/bus/stationInfo',
    method: 'get',
	params: query
  })
}

// 添加设备到站台
export function addDevStation(data) {
  return request({
    url: '/lgsvapi/bus/add',
    method: 'post',
    data: data
  })
}

// 删除配置
export function delStation(data) {
  return request({
    url: '/lgsvapi/bus/remove',
    method: 'delete',
	data:data
	
  })
}
